<template>
  <div>
    <input type="text" v-model="arr.name">
  </div>
</template>

<script>
export default {
  data() {
    return {
     arr:{
         name:"",
         age:""
     }
    };
  },
  watch: {
    arr:{
        immediate:true,
        deep:true,
        handler(newVal){
console.log(newVal);
        }
    }
  },
};
</script>

<style>
</style>